Working with tomcat server